Configuration

data class Configuration(val language: Language, val currency: Currency, val publishableKey: String?, val isDebugMode: Boolean, val sessionId: String?, val redirectURL: String, val appScheme: String, val configurableTheme: KomojuAndroidSDK.ConfigurableTheme, val inlinedProcessing: Boolean) : Parcelable

Configuration class to hold parameters required for payment processing.

Parameters

language

The language setting for the payment UI.

currency

The currency to be used for the transaction.

publishableKey

The public API key for the Komoju integration.

isDebugMode

A flag to indicate whether the SDK is in debug mode.

sessionId

A unique session ID for the payment transaction.

redirectURL

The URL to redirect the user to after payment completion.

appScheme

The app scheme for deep linking.

configurableTheme

The custom theme for the UI elements of the payment flow.

inlinedProcessing

A flag to indicate if inlined processing is enabled.

Constructors

Link copied to clipboard
constructor(language: Language, currency: Currency, publishableKey: String?, isDebugMode: Boolean, sessionId: String?, redirectURL: String, appScheme: String, configurableTheme: KomojuAndroidSDK.ConfigurableTheme, inlinedProcessing: Boolean)

Types

Link copied to clipboard
class Builder(publishableKey: String, sessionId: String)

Builder class for creating a Configuration instance. Offers a flexible way to set optional parameters.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Extension function to check if the current configuration is valid for processing a payment. A configuration is valid if it is non-null and contains both a valid publishable key and session ID.

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)